  <div class="form-group">
                    
                    <div class="col-sm-12">
                        <table style='width:100%;'>
                                <tr>
                                    <td style='width:320px;padding:10px;' valign='top'>
                                        <div id='task'>
                                          {if !empty($item['bg'])}
                                          <img src='{php echo tomedia($item['bg'])}' class='bg'/>
                                          {/if}
                                          {if !empty($data)}
                                          {loop $data $key $d}
                                       
                                          <div class="drag" type="{$d['type']}" title="{$d['title']}" index="{php echo $key+1}" style="zindex:{php echo $key+1};left:{$d['left']};top:{$d['top']};
                                               width:{$d['width']};height:{$d['height']}" 
                                               src="{$d['src']}" size="{$d['size']}" color="{$d['color']}"
                                               > 
                                               {if $d['type']=='qr'}
                                                 <img src="../addons/ewei_shopv2/plugin/task/static/images/qr.jpg" />
                                                {elseif $d['type']=='head'}
                                                  <img src="../addons/ewei_shopv2/plugin/task/static/images/head.jpg" />
                                                {elseif $d['type']=='img' || $d['type']=='thumb'}
                                                  <img src="{php echo empty($d['src'])?'../addons/ewei_shopv2/plugin/task/static/images/img.jpg':tomedia($d['src'])}" />
                                                {elseif $d['type']=='nickname'}
                                                   <div class=text style="font-size:{$d['size']};color:{$d['color']}">昵称</div> 
			                                    {elseif $d['type']=='time'}
                                                   <div class=text style="font-size:{$d['size']};color:{$d['color']}">{$d['title']}</div>
                                                {elseif $d['type']=='title'}
                                                   <div class=text style="font-size:{$d['size']};color:{$d['color']}">商品名称</div> 
                                                {elseif $d['type']=='marketprice'}
                                                   <div class=text style="font-size:{$d['size']};color:{$d['color']}">商品现价</div> 
                                                {elseif $d['type']=='productprice'}
                                                   <div class=text style="font-size:{$d['size']};color:{$d['color']}">商品原价</div> 
                                                {/if}
                                              <div class="rRightDown"> </div><div class="rLeftDown"> </div><div class="rRightUp"> </div><div class="rLeftUp"> </div><div class="rRight"> </div><div class="rLeft"> </div><div class="rUp"> </div><div class="rDown"></div>
                                          </div>
                                          {/loop} 
                                          {/if}
                                        </div>
                                        
                                    </td>
                                    <td valign='top' style='padding:10px;'>
                                        {ife 'task' $item}
                                          <div class='panel panel-default'>
                                              <div class='panel-body'>
                                                <div class="form-group" id="bgset">
                                                    <label class="col-sm-2 control-label">背景图片</label>
                                                    <div class="col-sm-9 col-xs-12">
                                                       {php echo tpl_form_field_image('bg',$item['bg'])}
                                                       <span class='help-block'>背景图片尺寸: 640 * 1008</span>
                                                    </div>
                                                
                                                    
                                                </div>
                                                    <div class="form-group">
                                                        <label class="col-sm-2 control-label">海报元素</label>
                                                        <div class="col-sm-9 col-xs-12">
                                                             <button class='btn btn-default btn-com' type='button' data-type='head' >头像</button>
                                                             <button class='btn btn-default btn-com' type='button' data-type='nickname' >昵称</button>
                                                             <button class='btn btn-default btn-com' type='button' data-type='qr' >二维码</button>
                                                             <button class='btn btn-default btn-com' type='button' data-type='img' >图片</button>
                                                            <button class='btn btn-default btn-com' type='button' data-type='time' >失效时间(Y-m-d H:i)</button>
															
                                                             <span id="goodsparams" {if empty($goods)}style="display:none"{/if}>
                                                                   <br/>
                                                                  <button class='btn btn-default btn-com' type='button' data-type='title' >商品名称</button>    
                                                                  <button class='btn btn-default btn-com' type='button' data-type='thumb' >商品图片</button>    
                                                                  <button class='btn btn-default btn-com' type='button' data-type='marketprice' >商品现价</button>    
                                                                  <button class='btn btn-default btn-com' type='button' data-type='productprice' >商品原价</button>    
                                                             </span>
														
                                                        </div>
                                                    </div>
                                                  <div id='qrset' style='display:none'>
                                                   <div class="form-group">
                                                        <label class="col-sm-2 control-label">二维码尺寸</label>
                                                         <div class="col-sm-9 col-xs-12">
                                                             <select id='qrsize' class='form-control'>
                                                                 <option value='1'>1</option>
                                                                 <option value='2'>2</option>
                                                                 <option value='3'>3</option>
                                                                 <option value='4'>4</option>
                                                                 <option value='5'>5</option>
                                                                 <option value='6'>6</option>
                                                             </select>
                                                        </div>
                                                    
                                                    </div>
                                                  </div>
                                       
                                                  <div id='nameset' style='display:none'>
                                                   <div class="form-group">
                                                        <label class="col-sm-2 control-label">文字颜色</label>
                                                         <div class="col-sm-9 col-xs-12">
                                                              {php echo tpl_form_field_color('color')}
                                                        </div>
                                                    
                                                    </div>
                                                    <div class="form-group">
                                                        <label class="col-sm-2 control-label">文字大小</label>
                                                        <div class="col-sm-4">
                                                             <div class='input-group'>
                                                                 <input type="text" id="namesize" class="form-control namesize" placeholder="例如: 14,16"  />
                                                                 <div class='input-group-addon'>px</div>
                                                            </div>
                                                        </div>
                                                    </div>
                                             </div>
                                                  <div id='timeset' style='display:none'>
                                                      <div class="form-group">
                                                          <label class="col-sm-2 control-label">提示标题</label>
                                                          <div class="col-sm-9 col-xs-12">
                                                              <input type="text" id="timename" class="form-control namesize" value="到期时间" />
                                                          </div>
                                                      </div>
                                                      <div class="form-group">
                                                          <label class="col-sm-2 control-label">文字颜色</label>
                                                          <div class="col-sm-9 col-xs-12">
                                                              {php echo tpl_form_field_color('color')}
                                                          </div>

                                                      </div>
                                                      <div class="form-group">
                                                          <label class="col-sm-2 control-label">文字大小</label>
                                                          <div class="col-sm-4">
                                                              <div class='input-group'>
                                                                  <input type="text" id="timesize" class="form-control namesize" placeholder="例如: 14,16"  />
                                                                  <div class='input-group-addon'>px</div>
                                                              </div>
                                                          </div>
                                                      </div>
                                                  </div>
                                                     <div class="form-group" id="imgset" style="display:none">
                                                        <label class="col-sm-2 control-label">图片设置</label>
                                                        <div class="col-sm-9 col-xs-12">
                                                              {php echo tpl_form_field_image('img')}
                                                        </div>
                                                    </div>
                                                  <div class="form-group" id="headset" style="display:none">
                                                      <label class="col-sm-2 control-label">头像设置</label>
                                                      <div class="col-sm-9 col-xs-12">
                                                          <img src="../addons/ewei_shopv2/plugin/task/static/images/head.jpg" width="80px" height="80px" type="default" class="head_set"/>
                                                          <img src="../addons/ewei_shopv2/plugin/task/static/images/head.jpg" width="80px" height="80px" type="img-rounded" class="head_set img-rounded"/>
                                                          <img src="../addons/ewei_shopv2/plugin/task/static/images/head.jpg" width="80px" height="80px" type="img-circle" class="head_set img-circle"/>
                                                      </div>
                                                  </div>
                                       
                                          </div>
                                   </div>
                                        {/if}
                                    </td>
                                </tr>
                        </table>
           </div>          </div>